package com.newtouch.bxzs.common.base.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 通知信息实体类
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2020/12/22</td>
 * <td>liman</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author liman
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
@TableName(value = "ASSISTANT_NOTIFICATION")
public class Notification implements Serializable {
    /**serialVersionUID*/
    private static final long serialVersionUID = -4084343975386041722L;
    /**
     * 通知ID
     */
    @TableId(value = "NOTIFICATION_ID", type = IdType.ASSIGN_UUID)
    private String notificationId;

    /**
     * 通知名称
     */
    @TableField(value = "NOTIFICATION_NAME")
    private String notificationName;

    /**
     * 通知类型：公司通知1；业务通知2；系统通知3；个人通知4
     */
    @TableField(value = "NOTIFICATION_TYPE")
    private String notificationType;

    /**
     * 通知子类型：1-保单消息提醒；2-客户消息提醒；3-营销会议消息提醒；4-营销活动消息提醒；5-升级提醒；6-业务提醒；
     */
    @TableField(value = "NOTIFICATION_SUBTYPE")
    private String notificationSubtype;

    /**
     * 通知简介
     */
    @TableField(value = "NOTIFICATION_INTRODUCTION")
    private String notificationIntroduction;

    /**
     * 通知内容
     */
    @TableField(value = "NOTIFICATION_CONTENT")
    private String notificationContent;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "PUBLISH_TIME",updateStrategy=FieldStrategy.IGNORED)
    private Date publishTime;

    /**
     * 撤销时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "REVOKE_TIME",updateStrategy=FieldStrategy.IGNORED)
    private Date revokeTime;

    /**
     * 发布状态：未发布1；已发布2；已结束3；已取消4
     */
    @TableField(value = "PUBLISH_STATUS")
    private String publishStatus;

    /**
     * 创建用户ID
     */
    @TableField(value = "CREATE_USER_ID")
    private String createUserId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 修改用户ID
     */
    @TableField(value = "UPDATE_USER_ID")
    private String updateUserId;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "MEMO")
    private String memo;

    /**
     * 是否删除：是1；否0
     */
    @TableLogic(value = "0",delval = "1")
    @TableField(value = "IS_DELETE")
    private Boolean deleteFlag=false;

    /**
     * 接收用户
     */
    @TableField(value = "RECEIVE_USER")
    private String receiveUser;
}
